package com.yanqu.road.server.cmd.minewar;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.cmd.minewar.task.SearchUserPitListTask;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.MineWarMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.server.command.Cmd;

@Cmd(code = Protocol.S_MINE_WAR_SEARCH_USER_DATA, desc = "搜索用户坑位信息")
public class MineSearchUserPitCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		MineWarMgr.addTask(new SearchUserPitListTask(packet, player));
	}

	@Override
	public void sendData(GamePlayer player) {

	}
}
